package com.sjf.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjf.reggie.dto.DishDto;
import com.sjf.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor ( DishDto dishDto );

    Page getList ( Integer pageNum , Integer pageSize , String name );

    DishDto selectById ( Long id );

    void edit ( DishDto dishDto );

    boolean updateStatus ( Integer status , String ids );

    boolean deleteByIds ( String ids );

    List<DishDto> getFoodWithSetmeal ( Long categoryId ,String name,Integer status);
}
